package com.pan.api.utils;

enum PanReflectUtilAdapter implements  PanReflectUtil, GetUtilInstanceUtil{

    INSTANCE;

    PanReflectUtilAdapter() {
        panReflectUtil = getUtil("utils", "PanReflectUtil");
    }
    private PanReflectUtil panReflectUtil;

    @Override
    public Class loadClass(String fullName) {
        return panReflectUtil.loadClass(fullName);
    }

    @Override
    public <T> T createNewInstance(Class<T> clazz, Object... args) {
        return panReflectUtil.createNewInstance(clazz, args);
    }

    @Override
    public <T> T createNewInstance(String fullName, Object... args) {
        return panReflectUtil.createNewInstance(fullName, args);
    }
}
